package com.lcx.util;

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;

public class ConfigUtil {

    private static final Properties properties = new Properties();

    public static void loadConfig(InputStream is){
        try {
            properties.load(is);
        } catch (Exception e) {
        }finally {
            try{
                is.close();
            }catch (Exception e){}
        }
    }

    public static String getProperty(String key){
        return properties.getProperty(key);
    }

    static{
        try{
            loadConfig(new FileInputStream("fxWeb.properties"));
        }catch (Exception e){

        }
    }

}
